package day13;

/**
 * @author oldliu
 * @since 1.0
 */
public class CTest {
    public static void main(String[] args) {
        A aa=null;
        aa.print();//A.print()
        //A.print();
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
        //遮罩效应
        A a=new B();
        a.m1();
        System.out.println("???????????????");
        System.out.println(a.name);
        System.out.println(((B)a).name);
        B b=(B)a;
        System.out.println(b.name);
        System.out.println(">>>>>>>>>>>>>>>>>>>");
        a.print();
        b.print();
    }
}
